/*
 * ReplyForm
 * 
 * Version information
 * 
 * Mar 30, 2006
 * 
 * Copyright (c) AmSoft Systems, 2006
 */
package net.amsoft.iservice.icontact.webapp.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * @author rahul
 * 
 */
@SuppressWarnings("serial")
public class ReplyForm extends ActionForm {

	private static final Logger oLogger = Logger.getLogger(ReplyForm.class);

	private String sMsg = "";

	private String sSubject = "";

	private boolean bRequest = false;

	private String sHash = "";

	public String getMsg() {
		return sMsg;
	}

	public void setMsg(String msg) {
		this.sMsg = msg;
	}

	public String getSubject() {
		return sSubject;
	}

	public void setSubject(String subject) {
		sSubject = subject;
	}

	public boolean isRequest() {
		return bRequest;
	}

	public void setRequest(boolean isRequest) {
		bRequest = isRequest;
	}

	public String getHash() {
		return sHash;
	}

	public void setHash(String hash) {
		sHash = hash;
	}

	@Override
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {

		return super.validate(mapping, request);
	}

	public void debug(String pattern) {
		if (pattern == null) {
			pattern = "";
		}
		oLogger.debug(pattern + " : Subject=" + sSubject + ",Message=" + sMsg
				+ ",Hash=" + sHash);
	}
}
